<?php
$account_id = $this->session->userdata('doggy.id');
$account_name = $this->session->userdata('account_name');
echo $erreur;
?>
<div id="wrapper-content" style="width: 600px;">
        <?php foreach ($search_result as $aRow): ?>
        <?php
                $image_ava = './doggy_avatar/images/' . $aRow['avatar'];
                if(file_exists($image_ava) && $aRow['avatar']!=null){
                    $image_ava = base_url() . 'doggy_avatar/images/' . $aRow['avatar'];
                } else{
                    $image_ava = root_url('doggy_flirt'). 'assets/noimage.gif';
            }?>
            <table>
            	<tr>
                <td><img src="<?php echo $image_ava; ?>" width="80" height="60"/></td>
                <td><?php echo $aRow['account_name']; ?></td>
                <td align="center" width="50%"><a href="<?php echo site_url('friend/send_friend_request/' . $aRow['id']); ?>">Ajouter comme amis</a></td>
                </tr>
            </table>
        <?php endforeach; ?>
    <?php echo $pagination; ?>
</div>
<!--END wrapper-content-->
